﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Persian_Subtitle_Encoding_Fixer
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Form1 form1 = new Form1();           
            // Read parameters
            String[] args = Environment.GetCommandLineArgs();
            if (args.Length > 1)
                form1.ReadSubtitle(args[1]);

            Application.Run(form1);
        }
    }
}
